package xuanzhen.reservation.service;

import java.util.List;
import java.util.Map;
import xuanzhen.reservation.pojo.Reservation;


public interface ReservationService {
	/**
	 * 新增
	 */
	int insertReservation(Reservation reservation)throws Exception;
	/**
	 * 修改
	 */
	int updateReservation(Reservation reservation)throws Exception;
	/**
	 * 根据对象查询
	 */
	List<Reservation> queryListByEntity(Reservation reservation)throws Exception;
	/**
	 * 根据map查询
	 */
	List<Reservation> queryListByMap(Map<String,Object> parameter)throws Exception;
	List<Reservation> queryLikeListByMap(Map<String,Object> parameter)throws Exception;
	List<Reservation> queryRedsCountLtListByMap(Map<String,Object> parameter)throws Exception;
	/**
	 * 查询未处理
	 */
	List<Reservation> queryMessageListByMap(Map<String,Object> parameter)throws Exception;
	/**
	 * 查询未处理数量
	 */
	int countUnDeul(Map<String,Object> parameter)throws Exception;
	/**
	 * 查询非法取消数
	 */
	int selectCountIllegal(Reservation reservation)throws Exception;
	/**
	 * 查询用户非法取消数 配送员取消
	 */
	int selectCountIllegalChick(Reservation reservation) throws Exception;
	/**
	 * 计算查询结果数
	 * @param parameter
	 * @return
	 */
	int countLikes(Map<String, Object> parameter)throws Exception;
}
